<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver DS18B20: src/driver_ds18b20.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver DS18B20
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">DS18B20 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('driver__ds18b20_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">driver_ds18b20.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="driver__ds18b20_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifndef DRIVER_DS18B20_H</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_H</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#ifndef DS18B20_MAX_SEARCH_SIZE</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="group__ds18b20__advance__driver.html#ga3fe85125e859506571af01e6260cc29d">   64</a></span>&#160;<span class="preprocessor">    #define DS18B20_MAX_SEARCH_SIZE 64        </span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">   79</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;{</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942">   81</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942">DS18B20_MODE_SKIP_ROM</a>  = 0x00,        </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb">   82</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb">DS18B20_MODE_MATCH_ROM</a> = 0x01,        </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;} <a class="code" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">   88</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2">   90</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2">DS18B20_POWER_MODE_PARASITE</a>   = 0x00,        </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324">   91</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324">DS18B20_POWER_MODE_EXTERNALLY</a> = 0x01,        </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;} <a class="code" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">   97</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;{</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b">   99</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b">DS18B20_RESOLUTION_9BIT</a>  = 0x00,        </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0">  100</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0">DS18B20_RESOLUTION_10BIT</a> = 0x01,        </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6">  101</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6">DS18B20_RESOLUTION_11BIT</a> = 0x02,        </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca">  102</a></span>&#160;    <a class="code" href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca">DS18B20_RESOLUTION_12BIT</a> = 0x03,        </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;} <a class="code" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a>;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html">  108</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structds18b20__handle__s.html">ds18b20_handle_s</a></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;{</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#adfb6535c66ecb88edda3273848aaf54d">  110</a></span>&#160;    uint8_t (*<a class="code" href="structds18b20__handle__s.html#adfb6535c66ecb88edda3273848aaf54d">bus_init</a>)(void);                              </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a2193b7364a6c4090ba298435005b817a">  111</a></span>&#160;    uint8_t (*<a class="code" href="structds18b20__handle__s.html#a2193b7364a6c4090ba298435005b817a">bus_deinit</a>)(void);                            </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#abe23165605a343d08776c029a60eb242">  112</a></span>&#160;    uint8_t (*<a class="code" href="structds18b20__handle__s.html#abe23165605a343d08776c029a60eb242">bus_read</a>)(uint8_t *value);                    </div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#abfcb2d495a2e0ec23a7c710c62a95c5b">  113</a></span>&#160;    uint8_t (*<a class="code" href="structds18b20__handle__s.html#abfcb2d495a2e0ec23a7c710c62a95c5b">bus_write</a>)(uint8_t value);                    </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a406c9433252b7366de417b7a60915c81">  114</a></span>&#160;    void (*<a class="code" href="structds18b20__handle__s.html#a406c9433252b7366de417b7a60915c81">delay_ms</a>)(uint32_t ms);                          </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a97ffc4fce945527bd6ab25a3596caef7">  115</a></span>&#160;    void (*<a class="code" href="structds18b20__handle__s.html#a97ffc4fce945527bd6ab25a3596caef7">delay_us</a>)(uint32_t us);                          </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a06c0ed41fc67fd360798b30e8ce1d480">  116</a></span>&#160;    void (*<a class="code" href="structds18b20__handle__s.html#a06c0ed41fc67fd360798b30e8ce1d480">enable_irq</a>)(void);                               </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#aac09376076eae94d89ca85ff63018eee">  117</a></span>&#160;    void (*<a class="code" href="structds18b20__handle__s.html#aac09376076eae94d89ca85ff63018eee">disable_irq</a>)(void);                              </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a769d5b3a6c14790a0e126e8fe70b384b">  118</a></span>&#160;    void (*<a class="code" href="structds18b20__handle__s.html#a769d5b3a6c14790a0e126e8fe70b384b">debug_print</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">const</span> fmt, ...);        </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a19bedf28d2b9748f6a62d9ae93f4e68f">  119</a></span>&#160;    uint8_t <a class="code" href="structds18b20__handle__s.html#a19bedf28d2b9748f6a62d9ae93f4e68f">inited</a>;                                         </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#a37e90f5e3bd99fac2021fb3a326607d4">  120</a></span>&#160;    uint8_t <a class="code" href="structds18b20__handle__s.html#a37e90f5e3bd99fac2021fb3a326607d4">mode</a>;                                           </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="structds18b20__handle__s.html#ae3c9459b1dbf0dc64f4398a7b7c12e59">  121</a></span>&#160;    uint8_t <a class="code" href="structds18b20__handle__s.html#ae3c9459b1dbf0dc64f4398a7b7c12e59">rom</a>[8];                                         </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">  122</a></span>&#160;} <a class="code" href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html">  127</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structds18b20__info__s.html">ds18b20_info_s</a></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;{</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#af890958c72bd715cc6454a10dc846ae6">  129</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structds18b20__info__s.html#af890958c72bd715cc6454a10dc846ae6">chip_name</a>[32];                </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#ad25285dbf810c90f8eaf3fcef6f2b2ea">  130</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structds18b20__info__s.html#ad25285dbf810c90f8eaf3fcef6f2b2ea">manufacturer_name</a>[32];        </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#aebaa6c28dd4f2c3dc27566fcb910fd28">  131</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="structds18b20__info__s.html#aebaa6c28dd4f2c3dc27566fcb910fd28">interface</a>[8];                 </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#ad8bde6ddadaf43d951e62f3befb9d35a">  132</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structds18b20__info__s.html#ad8bde6ddadaf43d951e62f3befb9d35a">supply_voltage_min_v</a>;        </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#a3d2b12bcac7a85ea8646bff9debe8660">  133</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structds18b20__info__s.html#a3d2b12bcac7a85ea8646bff9debe8660">supply_voltage_max_v</a>;        </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#a9db82802561bf22d799b03a345f1d1dc">  134</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structds18b20__info__s.html#a9db82802561bf22d799b03a345f1d1dc">max_current_ma</a>;              </div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#a8f9dbe66ac0b66ebae0a36fcb4ba368e">  135</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structds18b20__info__s.html#a8f9dbe66ac0b66ebae0a36fcb4ba368e">temperature_min</a>;             </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#a3366a5dce9b829e03c3d321c2b4df3f6">  136</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="structds18b20__info__s.html#a3366a5dce9b829e03c3d321c2b4df3f6">temperature_max</a>;             </div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="structds18b20__info__s.html#a41b0bd442708b70d252c50b92c75265a">  137</a></span>&#160;    uint32_t <a class="code" href="structds18b20__info__s.html#a41b0bd442708b70d252c50b92c75265a">driver_version</a>;           </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">  138</a></span>&#160;} <a class="code" href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#gaeb6d8c99dd1508afac2d506e0fbba748">  157</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_INIT(HANDLE, STRUCTURE)   memset(HANDLE, 0, sizeof(STRUCTURE))</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#ga995e0ba6342a4fdd07464acfd3ded21b">  165</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_BUS_INIT(HANDLE, FUC)    (HANDLE)-&gt;bus_init = FUC</span></div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#gada03625a3e86545827079d7025dce366">  173</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_BUS_DEINIT(HANDLE, FUC)  (HANDLE)-&gt;bus_deinit = FUC</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#gab9c69affb4d2f518a8dd716a4ae0e582">  181</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_BUS_READ(HANDLE, FUC)    (HANDLE)-&gt;bus_read = FUC</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#ga68d0440d16dd362e2f89bf3c6945d3cd">  189</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_BUS_WRITE(HANDLE, FUC)   (HANDLE)-&gt;bus_write = FUC</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#gada3646f54931552e58b3955042b3f3a1">  197</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_DELAY_MS(HANDLE, FUC)    (HANDLE)-&gt;delay_ms = FUC</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#gad39c2a4f7dba94bfa1c5c60dd9879c4b">  205</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_DELAY_US(HANDLE, FUC)    (HANDLE)-&gt;delay_us = FUC</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; </div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#ga05c7f541eb13b7fc53e17e88c4dec347">  213</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_ENABLE_IRQ(HANDLE, FUC)  (HANDLE)-&gt;enable_irq = FUC</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#ga02ffa673971e5a9c312a49db319a1a60">  221</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_DISABLE_IRQ(HANDLE, FUC) (HANDLE)-&gt;disable_irq = FUC</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="group__ds18b20__link__driver.html#ga69860fef169e92a4e642304244c878be">  229</a></span>&#160;<span class="preprocessor">#define DRIVER_DS18B20_LINK_DEBUG_PRINT(HANDLE, FUC) (HANDLE)-&gt;debug_print = FUC</span></div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga73dc824fee896b24252b86e683618ee8">ds18b20_info</a>(<a class="code" href="structds18b20__info__s.html">ds18b20_info_t</a> *info);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga42a0bced6314bc11b3c47f1d83bbff9a">ds18b20_init</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle);</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#gaa7b94675deaafbe00917e7e232278c77">ds18b20_deinit</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle);</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160; </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga7b55e1d3f3ba9ca53c3a78c1d8d221b4">ds18b20_read</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, int16_t *raw, <span class="keywordtype">float</span> *temp);</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#gadd246c4e8a5887a1acd710dee214323c">ds18b20_set_mode</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <a class="code" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> mode);</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#gac443f4e1e2ec109676d1842cc7d1e96c">ds18b20_get_mode</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <a class="code" href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a> *mode);</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga4cf8a45542f1dfdca17347c0870f870f">ds18b20_set_rom</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, uint8_t rom[8]);</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#gaf4d3d3dd0bc24d0c4fa2822bfbc32f35">ds18b20_get_rom</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, uint8_t rom[8]);</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga93cfb5e6ae40d2595d55aafcd947f4ba">ds18b20_scratchpad_set_resolution</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <a class="code" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> resolution);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160; </div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga1e6aa803f8f341dbaeb010e5c4b3ecda">ds18b20_scratchpad_get_resolution</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <a class="code" href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a> *resolution);</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga5b16e3c5bee08168be48a615150fe171">ds18b20_copy_scratchpad_to_eeprom</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;uint8_t <a class="code" href="group__ds18b20__base__driver.html#ga511d72a8988b7dc7dc09bd82ab3cfde3">ds18b20_copy_eeprom_to_scratchpad</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle);</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160; </div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#gacdec4dca56e47a203832ffcd1d71b2f0">ds18b20_scratchpad_set_alarm_threshold</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, int8_t threshold_high, int8_t threshold_low);</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160; </div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#gabe12d7ad8c1a4812239d2d85e0536a0d">ds18b20_scrachpad_get_alarm_threshold</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, int8_t *threshold_high, int8_t *threshold_low);</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; </div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#gad27eacce4379fb8aa528645be258b698">ds18b20_alarm_convert_to_register</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <span class="keywordtype">float</span> temp, int8_t *reg);</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160; </div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#ga11bfd128f97051bc0e2775bf6dda64f5">ds18b20_alarm_convert_to_data</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, int8_t reg, <span class="keywordtype">float</span> *temp);</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160; </div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#ga7b1500ff71c4d2a2ba63825b639ae808">ds18b20_search_rom</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, uint8_t (*rom)[8], uint8_t *num);</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160; </div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#ga384c1500974d1390b4113f5b474774e5">ds18b20_search_alarm</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, uint8_t (*rom)[8], uint8_t *num);</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160; </div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;uint8_t <a class="code" href="group__ds18b20__advance__driver.html#ga508a88dccd8b9b8ddbff04c7e867fd5f">ds18b20_get_power_mode</a>(<a class="code" href="structds18b20__handle__s.html">ds18b20_handle_t</a> *handle, <a class="code" href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a> *power_mode);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160; </div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;}</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160; </div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_ga11bfd128f97051bc0e2775bf6dda64f5"><div class="ttname"><a href="group__ds18b20__advance__driver.html#ga11bfd128f97051bc0e2775bf6dda64f5">ds18b20_alarm_convert_to_data</a></div><div class="ttdeci">uint8_t ds18b20_alarm_convert_to_data(ds18b20_handle_t *handle, int8_t reg, float *temp)</div><div class="ttdoc">convert the register data to the alarm temperature</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01278">driver_ds18b20.c:1278</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_ga384c1500974d1390b4113f5b474774e5"><div class="ttname"><a href="group__ds18b20__advance__driver.html#ga384c1500974d1390b4113f5b474774e5">ds18b20_search_alarm</a></div><div class="ttdeci">uint8_t ds18b20_search_alarm(ds18b20_handle_t *handle, uint8_t(*rom)[8], uint8_t *num)</div><div class="ttdoc">search the ds18b20 alarm rom</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01965">driver_ds18b20.c:1965</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_ga508a88dccd8b9b8ddbff04c7e867fd5f"><div class="ttname"><a href="group__ds18b20__advance__driver.html#ga508a88dccd8b9b8ddbff04c7e867fd5f">ds18b20_get_power_mode</a></div><div class="ttdeci">uint8_t ds18b20_get_power_mode(ds18b20_handle_t *handle, ds18b20_power_mode_t *power_mode)</div><div class="ttdoc">get the power mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01988">driver_ds18b20.c:1988</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_ga7b1500ff71c4d2a2ba63825b639ae808"><div class="ttname"><a href="group__ds18b20__advance__driver.html#ga7b1500ff71c4d2a2ba63825b639ae808">ds18b20_search_rom</a></div><div class="ttdeci">uint8_t ds18b20_search_rom(ds18b20_handle_t *handle, uint8_t(*rom)[8], uint8_t *num)</div><div class="ttdoc">search the ds18b20 rom</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01941">driver_ds18b20.c:1941</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_gabe12d7ad8c1a4812239d2d85e0536a0d"><div class="ttname"><a href="group__ds18b20__advance__driver.html#gabe12d7ad8c1a4812239d2d85e0536a0d">ds18b20_scrachpad_get_alarm_threshold</a></div><div class="ttdeci">uint8_t ds18b20_scrachpad_get_alarm_threshold(ds18b20_handle_t *handle, int8_t *threshold_high, int8_t *threshold_low)</div><div class="ttdoc">get the alarm threshold in the scratchpad</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00958">driver_ds18b20.c:958</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_gacdec4dca56e47a203832ffcd1d71b2f0"><div class="ttname"><a href="group__ds18b20__advance__driver.html#gacdec4dca56e47a203832ffcd1d71b2f0">ds18b20_scratchpad_set_alarm_threshold</a></div><div class="ttdeci">uint8_t ds18b20_scratchpad_set_alarm_threshold(ds18b20_handle_t *handle, int8_t threshold_high, int8_t threshold_low)</div><div class="ttdoc">set the alarm threshold in the scratchpad</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00773">driver_ds18b20.c:773</a></div></div>
<div class="ttc" id="agroup__ds18b20__advance__driver_html_gad27eacce4379fb8aa528645be258b698"><div class="ttname"><a href="group__ds18b20__advance__driver.html#gad27eacce4379fb8aa528645be258b698">ds18b20_alarm_convert_to_register</a></div><div class="ttdeci">uint8_t ds18b20_alarm_convert_to_register(ds18b20_handle_t *handle, float temp, int8_t *reg)</div><div class="ttdoc">convert the alarm temperature to the register data</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01251">driver_ds18b20.c:1251</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga1e6aa803f8f341dbaeb010e5c4b3ecda"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga1e6aa803f8f341dbaeb010e5c4b3ecda">ds18b20_scratchpad_get_resolution</a></div><div class="ttdeci">uint8_t ds18b20_scratchpad_get_resolution(ds18b20_handle_t *handle, ds18b20_resolution_t *resolution)</div><div class="ttdoc">get the resolution in the scratchpad</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00653">driver_ds18b20.c:653</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga3804f6549e6eeb30fc781d36ebbf8fbd"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga3804f6549e6eeb30fc781d36ebbf8fbd">ds18b20_power_mode_t</a></div><div class="ttdeci">ds18b20_power_mode_t</div><div class="ttdoc">ds18b20 power mode enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00088">driver_ds18b20.h:89</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga42a0bced6314bc11b3c47f1d83bbff9a"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga42a0bced6314bc11b3c47f1d83bbff9a">ds18b20_init</a></div><div class="ttdeci">uint8_t ds18b20_init(ds18b20_handle_t *handle)</div><div class="ttdoc">initialize the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01305">driver_ds18b20.c:1305</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga4cf8a45542f1dfdca17347c0870f870f"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga4cf8a45542f1dfdca17347c0870f870f">ds18b20_set_rom</a></div><div class="ttdeci">uint8_t ds18b20_set_rom(ds18b20_handle_t *handle, uint8_t rom[8])</div><div class="ttdoc">set the handle rom</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00394">driver_ds18b20.c:394</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga511d72a8988b7dc7dc09bd82ab3cfde3"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga511d72a8988b7dc7dc09bd82ab3cfde3">ds18b20_copy_eeprom_to_scratchpad</a></div><div class="ttdeci">uint8_t ds18b20_copy_eeprom_to_scratchpad(ds18b20_handle_t *handle)</div><div class="ttdoc">copy the eeprom content to the scratchpad</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01164">driver_ds18b20.c:1164</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga5b16e3c5bee08168be48a615150fe171"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga5b16e3c5bee08168be48a615150fe171">ds18b20_copy_scratchpad_to_eeprom</a></div><div class="ttdeci">uint8_t ds18b20_copy_scratchpad_to_eeprom(ds18b20_handle_t *handle)</div><div class="ttdoc">copy the scratchpad content to the eeprom</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01078">driver_ds18b20.c:1078</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga6a1cab097fcad68347f07f97e1bb2af8"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga6a1cab097fcad68347f07f97e1bb2af8">ds18b20_resolution_t</a></div><div class="ttdeci">ds18b20_resolution_t</div><div class="ttdoc">ds18b20 resolution enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00097">driver_ds18b20.h:98</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga73dc824fee896b24252b86e683618ee8"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga73dc824fee896b24252b86e683618ee8">ds18b20_info</a></div><div class="ttdeci">uint8_t ds18b20_info(ds18b20_info_t *info)</div><div class="ttdoc">get chip's information</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l02084">driver_ds18b20.c:2084</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga7b55e1d3f3ba9ca53c3a78c1d8d221b4"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga7b55e1d3f3ba9ca53c3a78c1d8d221b4">ds18b20_read</a></div><div class="ttdeci">uint8_t ds18b20_read(ds18b20_handle_t *handle, int16_t *raw, float *temp)</div><div class="ttdoc">read data from the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01426">driver_ds18b20.c:1426</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga93cfb5e6ae40d2595d55aafcd947f4ba"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga93cfb5e6ae40d2595d55aafcd947f4ba">ds18b20_scratchpad_set_resolution</a></div><div class="ttdeci">uint8_t ds18b20_scratchpad_set_resolution(ds18b20_handle_t *handle, ds18b20_resolution_t resolution)</div><div class="ttdoc">set the resolution in the scratchpad</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00469">driver_ds18b20.c:469</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ga98871c12e3fad6c31dae60144c3a51c5"><div class="ttname"><a href="group__ds18b20__base__driver.html#ga98871c12e3fad6c31dae60144c3a51c5">ds18b20_handle_t</a></div><div class="ttdeci">struct ds18b20_handle_s ds18b20_handle_t</div><div class="ttdoc">ds18b20 handle structure definition</div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gaa76e51e2201d4058f4274ca420c165f6"><div class="ttname"><a href="group__ds18b20__base__driver.html#gaa76e51e2201d4058f4274ca420c165f6">ds18b20_mode_t</a></div><div class="ttdeci">ds18b20_mode_t</div><div class="ttdoc">ds18b20 mode enumeration definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00079">driver_ds18b20.h:80</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gaa7b94675deaafbe00917e7e232278c77"><div class="ttname"><a href="group__ds18b20__base__driver.html#gaa7b94675deaafbe00917e7e232278c77">ds18b20_deinit</a></div><div class="ttdeci">uint8_t ds18b20_deinit(ds18b20_handle_t *handle)</div><div class="ttdoc">close the chip</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l01392">driver_ds18b20.c:1392</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gac443f4e1e2ec109676d1842cc7d1e96c"><div class="ttname"><a href="group__ds18b20__base__driver.html#gac443f4e1e2ec109676d1842cc7d1e96c">ds18b20_get_mode</a></div><div class="ttdeci">uint8_t ds18b20_get_mode(ds18b20_handle_t *handle, ds18b20_mode_t *mode)</div><div class="ttdoc">get the chip mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00368">driver_ds18b20.c:368</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gadd246c4e8a5887a1acd710dee214323c"><div class="ttname"><a href="group__ds18b20__base__driver.html#gadd246c4e8a5887a1acd710dee214323c">ds18b20_set_mode</a></div><div class="ttdeci">uint8_t ds18b20_set_mode(ds18b20_handle_t *handle, ds18b20_mode_t mode)</div><div class="ttdoc">set the chip mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00342">driver_ds18b20.c:342</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gaf0d8f59ec1b4c532700951b5039bc839"><div class="ttname"><a href="group__ds18b20__base__driver.html#gaf0d8f59ec1b4c532700951b5039bc839">ds18b20_info_t</a></div><div class="ttdeci">struct ds18b20_info_s ds18b20_info_t</div><div class="ttdoc">ds18b20 info structure definition</div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gaf4d3d3dd0bc24d0c4fa2822bfbc32f35"><div class="ttname"><a href="group__ds18b20__base__driver.html#gaf4d3d3dd0bc24d0c4fa2822bfbc32f35">ds18b20_get_rom</a></div><div class="ttdeci">uint8_t ds18b20_get_rom(ds18b20_handle_t *handle, uint8_t rom[8])</div><div class="ttdoc">get the chip rom</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8c_source.html#l00420">driver_ds18b20.c:420</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdaa97a8020f8db2ddfdb22ce3f543001b2">DS18B20_POWER_MODE_PARASITE</a></div><div class="ttdeci">@ DS18B20_POWER_MODE_PARASITE</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00090">driver_ds18b20.h:90</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga3804f6549e6eeb30fc781d36ebbf8fbdab1abf829bf00979b637436a159283324">DS18B20_POWER_MODE_EXTERNALLY</a></div><div class="ttdeci">@ DS18B20_POWER_MODE_EXTERNALLY</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00091">driver_ds18b20.h:91</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a0396bfa58a01fdd9922771715e1467f6">DS18B20_RESOLUTION_11BIT</a></div><div class="ttdeci">@ DS18B20_RESOLUTION_11BIT</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00101">driver_ds18b20.h:101</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a5333ef2c5e5ec44213bf3f40bd9aa50b">DS18B20_RESOLUTION_9BIT</a></div><div class="ttdeci">@ DS18B20_RESOLUTION_9BIT</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00099">driver_ds18b20.h:99</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8a6274d477f2d9d92a62050c3375c361a0">DS18B20_RESOLUTION_10BIT</a></div><div class="ttdeci">@ DS18B20_RESOLUTION_10BIT</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00100">driver_ds18b20.h:100</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca"><div class="ttname"><a href="group__ds18b20__base__driver.html#gga6a1cab097fcad68347f07f97e1bb2af8af2f20b32fccc2658193d818188ae54ca">DS18B20_RESOLUTION_12BIT</a></div><div class="ttdeci">@ DS18B20_RESOLUTION_12BIT</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00102">driver_ds18b20.h:102</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942"><div class="ttname"><a href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a2240dc3e5f913d272861b29b87e06942">DS18B20_MODE_SKIP_ROM</a></div><div class="ttdeci">@ DS18B20_MODE_SKIP_ROM</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00081">driver_ds18b20.h:81</a></div></div>
<div class="ttc" id="agroup__ds18b20__base__driver_html_ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb"><div class="ttname"><a href="group__ds18b20__base__driver.html#ggaa76e51e2201d4058f4274ca420c165f6a6fefdf17cbb1204ac17187e4c6c96eeb">DS18B20_MODE_MATCH_ROM</a></div><div class="ttdeci">@ DS18B20_MODE_MATCH_ROM</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00082">driver_ds18b20.h:82</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html"><div class="ttname"><a href="structds18b20__handle__s.html">ds18b20_handle_s</a></div><div class="ttdoc">ds18b20 handle structure definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00108">driver_ds18b20.h:109</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a06c0ed41fc67fd360798b30e8ce1d480"><div class="ttname"><a href="structds18b20__handle__s.html#a06c0ed41fc67fd360798b30e8ce1d480">ds18b20_handle_s::enable_irq</a></div><div class="ttdeci">void(* enable_irq)(void)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00116">driver_ds18b20.h:116</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a19bedf28d2b9748f6a62d9ae93f4e68f"><div class="ttname"><a href="structds18b20__handle__s.html#a19bedf28d2b9748f6a62d9ae93f4e68f">ds18b20_handle_s::inited</a></div><div class="ttdeci">uint8_t inited</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00119">driver_ds18b20.h:119</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a2193b7364a6c4090ba298435005b817a"><div class="ttname"><a href="structds18b20__handle__s.html#a2193b7364a6c4090ba298435005b817a">ds18b20_handle_s::bus_deinit</a></div><div class="ttdeci">uint8_t(* bus_deinit)(void)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00111">driver_ds18b20.h:111</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a37e90f5e3bd99fac2021fb3a326607d4"><div class="ttname"><a href="structds18b20__handle__s.html#a37e90f5e3bd99fac2021fb3a326607d4">ds18b20_handle_s::mode</a></div><div class="ttdeci">uint8_t mode</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00120">driver_ds18b20.h:120</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a406c9433252b7366de417b7a60915c81"><div class="ttname"><a href="structds18b20__handle__s.html#a406c9433252b7366de417b7a60915c81">ds18b20_handle_s::delay_ms</a></div><div class="ttdeci">void(* delay_ms)(uint32_t ms)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00114">driver_ds18b20.h:114</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a769d5b3a6c14790a0e126e8fe70b384b"><div class="ttname"><a href="structds18b20__handle__s.html#a769d5b3a6c14790a0e126e8fe70b384b">ds18b20_handle_s::debug_print</a></div><div class="ttdeci">void(* debug_print)(const char *const fmt,...)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00118">driver_ds18b20.h:118</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_a97ffc4fce945527bd6ab25a3596caef7"><div class="ttname"><a href="structds18b20__handle__s.html#a97ffc4fce945527bd6ab25a3596caef7">ds18b20_handle_s::delay_us</a></div><div class="ttdeci">void(* delay_us)(uint32_t us)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00115">driver_ds18b20.h:115</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_aac09376076eae94d89ca85ff63018eee"><div class="ttname"><a href="structds18b20__handle__s.html#aac09376076eae94d89ca85ff63018eee">ds18b20_handle_s::disable_irq</a></div><div class="ttdeci">void(* disable_irq)(void)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00117">driver_ds18b20.h:117</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_abe23165605a343d08776c029a60eb242"><div class="ttname"><a href="structds18b20__handle__s.html#abe23165605a343d08776c029a60eb242">ds18b20_handle_s::bus_read</a></div><div class="ttdeci">uint8_t(* bus_read)(uint8_t *value)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00112">driver_ds18b20.h:112</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_abfcb2d495a2e0ec23a7c710c62a95c5b"><div class="ttname"><a href="structds18b20__handle__s.html#abfcb2d495a2e0ec23a7c710c62a95c5b">ds18b20_handle_s::bus_write</a></div><div class="ttdeci">uint8_t(* bus_write)(uint8_t value)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00113">driver_ds18b20.h:113</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_adfb6535c66ecb88edda3273848aaf54d"><div class="ttname"><a href="structds18b20__handle__s.html#adfb6535c66ecb88edda3273848aaf54d">ds18b20_handle_s::bus_init</a></div><div class="ttdeci">uint8_t(* bus_init)(void)</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00110">driver_ds18b20.h:110</a></div></div>
<div class="ttc" id="astructds18b20__handle__s_html_ae3c9459b1dbf0dc64f4398a7b7c12e59"><div class="ttname"><a href="structds18b20__handle__s.html#ae3c9459b1dbf0dc64f4398a7b7c12e59">ds18b20_handle_s::rom</a></div><div class="ttdeci">uint8_t rom[8]</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00121">driver_ds18b20.h:121</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html"><div class="ttname"><a href="structds18b20__info__s.html">ds18b20_info_s</a></div><div class="ttdoc">ds18b20 info structure definition</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00127">driver_ds18b20.h:128</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_a3366a5dce9b829e03c3d321c2b4df3f6"><div class="ttname"><a href="structds18b20__info__s.html#a3366a5dce9b829e03c3d321c2b4df3f6">ds18b20_info_s::temperature_max</a></div><div class="ttdeci">float temperature_max</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00136">driver_ds18b20.h:136</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_a3d2b12bcac7a85ea8646bff9debe8660"><div class="ttname"><a href="structds18b20__info__s.html#a3d2b12bcac7a85ea8646bff9debe8660">ds18b20_info_s::supply_voltage_max_v</a></div><div class="ttdeci">float supply_voltage_max_v</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00133">driver_ds18b20.h:133</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_a41b0bd442708b70d252c50b92c75265a"><div class="ttname"><a href="structds18b20__info__s.html#a41b0bd442708b70d252c50b92c75265a">ds18b20_info_s::driver_version</a></div><div class="ttdeci">uint32_t driver_version</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00137">driver_ds18b20.h:137</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_a8f9dbe66ac0b66ebae0a36fcb4ba368e"><div class="ttname"><a href="structds18b20__info__s.html#a8f9dbe66ac0b66ebae0a36fcb4ba368e">ds18b20_info_s::temperature_min</a></div><div class="ttdeci">float temperature_min</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00135">driver_ds18b20.h:135</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_a9db82802561bf22d799b03a345f1d1dc"><div class="ttname"><a href="structds18b20__info__s.html#a9db82802561bf22d799b03a345f1d1dc">ds18b20_info_s::max_current_ma</a></div><div class="ttdeci">float max_current_ma</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00134">driver_ds18b20.h:134</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_ad25285dbf810c90f8eaf3fcef6f2b2ea"><div class="ttname"><a href="structds18b20__info__s.html#ad25285dbf810c90f8eaf3fcef6f2b2ea">ds18b20_info_s::manufacturer_name</a></div><div class="ttdeci">char manufacturer_name[32]</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00130">driver_ds18b20.h:130</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_ad8bde6ddadaf43d951e62f3befb9d35a"><div class="ttname"><a href="structds18b20__info__s.html#ad8bde6ddadaf43d951e62f3befb9d35a">ds18b20_info_s::supply_voltage_min_v</a></div><div class="ttdeci">float supply_voltage_min_v</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00132">driver_ds18b20.h:132</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_aebaa6c28dd4f2c3dc27566fcb910fd28"><div class="ttname"><a href="structds18b20__info__s.html#aebaa6c28dd4f2c3dc27566fcb910fd28">ds18b20_info_s::interface</a></div><div class="ttdeci">char interface[8]</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00131">driver_ds18b20.h:131</a></div></div>
<div class="ttc" id="astructds18b20__info__s_html_af890958c72bd715cc6454a10dc846ae6"><div class="ttname"><a href="structds18b20__info__s.html#af890958c72bd715cc6454a10dc846ae6">ds18b20_info_s::chip_name</a></div><div class="ttdeci">char chip_name[32]</div><div class="ttdef"><b>Definition:</b> <a href="driver__ds18b20_8h_source.html#l00129">driver_ds18b20.h:129</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="driver__ds18b20_8h.html">driver_ds18b20.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
